home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Varios Español
/
Varios Español.iso
/
PMAKER65
/
archive.z
/
GUIAS....SPT
< prev
next >
Wrap
Text File
|
1997-01-13
|
2KB
|
69 lines
-- Object Guides 1.0
-- Created 4 Oct 96, am
-- Este gui≤n crea o elimina guφas en los bordes
-- tal y como se especifique en el cuadro de dißlogo.
//Get the info for the selected objects
getselectidlisttop >> numberofobjects, objectinfo
if numberofobjects = 0
message "Seleccione uno o mßs objetos de la pßgina."
return
endif
getplatform => thisplatform
if thisplatform = MACINTOSH
dialogbegin -80,-115,100,80,"Eliminar guφas del objeto"
static 10, 10, 150, 30, "Eliminar guφas de:"
checkbox 10, 40, 90, 60, "Arriba", 1
checkbox 10, 70, 90, 90, "Abajo", 1
checkbox 10, 100, 90, 120, "Izquierda", 1
checkbox 10,130, 90, 150, "Derecha", 1
pushbutton 10,160,80,180,"OK"
pushbutton 90,160,160,180,"Cancelar"
dialogend => buttonHit, S1,Top, Bottom, Left, Right, ...
else
dialogbegin -32,-46,55,32,"A±adir guφas del objeto"
static 4, 4, 60, 12, "Poner guφas:"
checkbox 4, 16, 32, 24, "Arriba", 1
checkbox 4, 26, 32, 36, "Abajo", 1
checkbox 4, 40, 42, 48, "Izquierda", 1
checkbox 4, 50, 42, 60, "Derecha", 1
pushbutton 4,64,42,74,"OK"
pushbutton 46,64,84,74,"Cancelar"
dialogend => buttonHit, S1,Top, Bottom, Left, Right, ...
endif
if buttonHit="OK"
redraw off
//Put guides around each selected object
loop i=0,numberofobjects-1
//Select the object
selectid (objectinfo((i*15)+1))
//Get the bounding box of the selected object
getselectinfo >> bboxinfo
//Create the guides
if Top = 1
try guidehoriz bboxinfo(2)
endif
if Left = 1
try guidevert bboxinfo(1)
endif
if Bottom = 1
try guidehoriz bboxinfo(4)
endif
if Right = 1
try guidevert bboxinfo(3)
endif
endloop
deselect
redraw on
endif
return